package com.wzy.java;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;

public class test29 {
    public static void main(String[] args) {
        String startDate = "2021-11-26";
        int changeDate = 100;
        String endDate = getEndDate(startDate, changeDate);
        System.out.println(endDate);
    }

    public static String getEndDate(String startDate, int changeDate) {
        return ChronoUnit.DAYS.addTo(LocalDate.parse(startDate, DateTimeFormatter.ofPattern("yyyy-MM-dd")), changeDate).toString();
    }
}  